package com.dhcc.bpm.modules.content.service.impl;

import com.dhcc.bpm.modules.content.entity.ProvideProduct;
import com.dhcc.bpm.modules.content.vo.ProvideProductVO;
import com.dhcc.bpm.modules.content.mapper.ProvideProductMapper;
import com.dhcc.bpm.modules.content.service.IProvideProductService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @ClassName ProvideProductServiceImpl
 * @Description  提供产品表 服务实现类
 * @Author daina
 * @Date 2020/3/9 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service
public class ProvideProductServiceImpl extends BaseServiceImpl<ProvideProductMapper, ProvideProduct> implements IProvideProductService {
	/**
	 * @Description 自定义分页
	 * @Author daina
	 * @Date 9:26 2020/3/11
	 * @param page
	 * @param provideProduct
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.content.vo.ProvideProductVO>
	 **/
	@Override
	public IPage<ProvideProductVO> selectProvideProductPage(IPage<ProvideProductVO> page, ProvideProductVO provideProduct) {
		return page.setRecords(baseMapper.selectProvideProductPage(page, provideProduct));
	}
	/**
	 * @Description 获取详情
	 * @Author daina
	 * @Date 9:26 2020/3/11
	 * @param id
	 * @return com.dhcc.bpm.modules.content.entity.ProvideProduct
	 **/
	@Override
	public ProvideProduct getDetailById (Long id) {
		return baseMapper.getDetailById(id);
	}
}
